<table class="table table-hover" style="border-collapse: separate">
    <thead>
        <tr>
            <th style="text-align: center"><a href="#" onclick="checkAll(this)">Check</a> / <a href="#" onclick="checkAll(this)">Uncheck</a></th>
            <th>USERNAME</th>
            <th style="text-align: center">ACTIVATION</th>
            <th style="text-align: center">DATE CREATED</th>
            <th style="text-align: center">ACTION</th>
        </tr>
    </thead>
    <tbody>
        <?php if(!empty($list)): ?>
        <?php foreach($list as $item): ?>
        <tr>
            <td style="text-align: center"><input name="selected_items[]" class="checkbox" type="checkbox" value="<?php echo $item['UserId'] ?>" style="margin: 0"/></td>
            <td><a class="bt-detail" href="?com=user&view=detail&uid=<?php echo $item['UserId'] ?>"><?php echo $item['Username'] ?></a></td>
            <td style="text-align: center"><a href="?com=user&action=active&uid=<?php echo $item['UserId'] ?>" class="bt-active" title="Click to change status"><span class="img-circle <?php echo ($item['Active'] == '1')?'green':'red' ?>"><?php echo $item['Active'] ?></span></a></td>
            <td style="text-align: center"><?php echo date('g:i:s A d/m/Y', strtotime($item['DateCreated'])) ?></td>
            <td style="text-align: center">
                <ul class="inline">
                    <li><a href="mailto: dthoang92@gmail.com">Send Message</a></li>
                    <li><a href="?com=user&action=delete&uid=<?php echo $item['UserId'] ?>" class="bt-delete">Delete</a></li>
                </ul>
            </td>
        </tr>
        <?php endforeach; ?>
        <?php else: ?>
        <tr><td colspan="4">Nothing....</td></tr>
        <?php endif; ?>
    </tbody>
</table>